<div class="row-fluid">
	<div class="span1"></div>
	<div class="span7">	
		<div id="premiera">
			<div id="myCarousel" class="carousel slide">
			  <ol class="carousel-indicators">
			  	<?php 
			  		$i = 0;
			  		$activeitem1 = true;
				  	foreach ($filme_premiera as $prem) {
			  	?>
			    	<li data-target="#myCarousel" data-slide-to="<?php echo $i++;?>" <?php if($activeitem1){ $activeitem1 = false; echo 'class="active"';}?>></li>
			    <?php 
				    }
				?>
			  </ol>
			  <!-- Carousel items -->
			  <div class="carousel-inner">
			  		<?php 
			  			$activeitem2 = true;
				  		foreach ($filme_premiera as $prem) {
			  		?>
				    <div class="<?php if($activeitem2){ echo 'active'; $activeitem2 = false;}?> item"><img src="<?php echo base_url();?>images/bg_premiera/<?php echo $prem['bg_premiera']?>.jpg" style="width:800px;height:300px;"/></div>
				    <?php 
				    	}
				    ?>
			  </div>
			  <!-- Carousel nav -->
			  <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
			  <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
			</div>
		</div>
		<div id="ecran">
			<br>
			<center><b>PE ECRAN</b></center><br>
			<?php  
				foreach ($filme_ecran as $film) {
			?>
				<div class="film_list">
					<div class="row-fluid">
						<div class="span2">
							<img style="margin:10px;box-shadow:0 0 5px 2px white;width:100px;height:140px;" src="./images/posters/<?php echo $film['poster']?>.jpg" href="<?php echo base_url();?>cautare/view_film/<?php echo $film['id'];?>"/>
							<div style="display:inline-block;position:absolute;margin-top:10px;">
								<a href="#"></a><br />
								<span align="justify"></span>
							</div>
						</div>
						<div class="span10" style="margin-top:10px;">
							<div><b><a href="<?php echo base_url()?>cautare/view_film/<?php echo $film['id']?>"><?php echo $film['titlu'];?></a></b></div><br />
							<div><?php echo $film['descriere']?></div>
						</div>
					</div>
				</div>
			<?php 
				}
			?>
		</div>
	</div>
	<div class="span3" style = "margin-top: 40px;">
		<iframe src="//www.facebook.com/plugins/likebox.php?locale=ro_RO&amp;href=http%3A%2F%2Fwww.facebook.com%2Fstarcinema95&amp;width=292&amp;height=220&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;border_color&amp;header=true" scrolling="yes" frameborder="0" style="border:none; overflow:hidden; width:292px; height: 220px;" allowTransparency="false"></iframe>
	</div>
	<div class="span1"></div>
</div>
<script type="text/javascript">
	$('.myCarousel').carousel({
	  interval: 3000
	})
</script>